/*
 * PMetIhcApp.java
 */

package pmetihc;

import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;
import org.jvnet.substance.SubstanceLookAndFeel;
import org.jvnet.substance.skin.MistAquaSkin;

/**
 * The main class of the application.
 */
public class PMetIhcApp extends SingleFrameApplication {

    
    /**
     * At startup create and show the main frame of the application.
     */
    @Override protected void startup() {
		VistaLogueo vl = new VistaLogueo (this);
		vl.setVisible (true);
                 try {
            SubstanceLookAndFeel.setSkin(new MistAquaSkin());// skin look and feel

             }
        catch( Exception e)
        {
            System.out.println("No se cargo Look and feel");
        }

	    /*VistaPaso4 a = new VistaPaso4();
        VistaPaso2 b = new VistaPaso2();*/
        //VistaLogueo c = new VistaLogueo();
        //VistaAdapMPF d = new VistaAdapMPF();
        //VistaCuenta e = new VistaCuenta();
		//VistaPaso1 f = new VistaPaso1 ();
        
        /*a.setVisible(true);
        b.setVisible(true);*/
        //c.setVisible(true);
        //d.setVisible(true);
        //e.setVisible(true);
		//f.setVisible (true);
    }
        public static String nombre_usu;
        
	public void mostrarVentanaTrabajo (String nombre) {

		show(new PMetIhcView(this));
                System.out.println(nombre);
                nombre_usu = nombre;
	}

    /**
     * This method is to initialize the specified window by injecting resources.
     * Windows shown in our application come fully initialized from the GUI
     * builder, so this additional configuration is not needed.
     */
    @Override protected void configureWindow(java.awt.Window root) {
    }

    /**
     * A convenient static getter for the application instance.
     * @return the instance of PMetIhcApp
     */
    public static PMetIhcApp getApplication() {
        return Application.getInstance(PMetIhcApp.class);
    }

    /**
     * Main method launching the application.
     */
    public static void main(String[] args) {
        launch(PMetIhcApp.class, args);
    }
}
